package org.dfrt.own.entity;

import java.io.Serializable;

/**
 * @author zhang
 * ClassName: Comment
 * Description: 评论实体类
 * date: 2023/10/3 19:18
 * @since JDK 8
 */
public class Comment implements Serializable {
    //评论id
    private Integer cid;
    //评论的文章id
    private Integer bid;
    //发布评论的时间
    private String ctime;
    //发布评论的用户id
    private Integer uid;
    //评论内容
    private String comments;

    public Comment() {
    }

    public Comment(Integer cid, Integer bid, String ctime, Integer uid, String comments) {
        this.cid = cid;
        this.bid = bid;
        this.ctime = ctime;
        this.uid = uid;
        this.comments = comments;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "cid=" + cid +
                ", bid=" + bid +
                ", ctime='" + ctime + '\'' +
                ", uid=" + uid +
                ", comments='" + comments + '\'' +
                '}';
    }
}
